/**
 * @author mapeng
 * @version 2017-05-17
 */

(function(doc, win) {

	var pageVariables = {"shopId" : ""};

    $(doc).on("pageInit", "#weixinOpenErrorPage4Wangshang", function(e, pageId, $page, isBack , isForward) {
        initPage();
    });
    bindEvent();

    function initPage(){

    	var params = CommonUtil.takeOutParamObject() || {};
    	pageVariables.shopId = params.shopId;

       	var errorMsg = params.errorMsg;
       	$("#weixinOpenErrorPage4Wangshang p[name='errorMsg']").html(errorMsg);
    }

    function bindEvent(){

    	//完成
    	$(document).on("click","#weixinOpenErrorPage4Wangshang .header a",function(e){
    	    location.href = '../vuepages/index.html#/storeManage?'+App.urlParam;
    	});
    }

})(document, window);
